- draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.
- getVertices
HipSpriteVertex[] getVertices()
Undocumented in source. Be warned that the author may not have intended to support it.
- opApply
int opApply(int delegate(ref HipSprite) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
- opApply
int opApply(int delegate(size_t index, ref HipSprite) dg)
Undocumented in source. Be warned that the author may not have intended to support it.
- opIndex
HipSprite opIndex(size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
- setTexture
void setTexture(IHipTexture texture)
Undocumented in source. Be warned that the author may not have intended to support it.
Encapsulates bunch of sprites to hold a contiguous list of vertices. It has some advantages than creating manually an array of similar sprites such as: - Copies only once to the SpriteBatch, which searches for the texture index once. - Boundary checks once - Makes the sprites array vertices linear, reducing cache misses. - Wraps the setTexture and draw process so no need to manually execute the foreach